//
//  MyIntegral.m
//  YYPHSpeedJump
//
//  Created by sujiang on 15/12/21.
//  Copyright © 2015年 sujiang. All rights reserved.
//

#import "MyIntegral.h"

@interface MyIntegral ()<UITableViewDelegate, UITableViewDataSource>

@end

@implementation MyIntegral

- (void)viewDidLoad {
    [super viewDidLoad];
    [self addSubViews];
}

- (NSMutableArray *)dataArray
{
    if (!_dataArray) {
        _dataArray = [NSMutableArray arrayWithObjects:@"每日分享", @"围观速降", @"完善资料",@"每日签到",nil];
    }
    return _dataArray;
}

- (void)addSubViews
{
    self.tableView = [[UITableView alloc] initWithFrame:[UIScreen mainScreen].bounds style:(UITableViewStyleGrouped)];
    [self.view addSubview:self.tableView];
    self.tableView.delegate = self;
    self.tableView.dataSource = self;
    UIView *aView = [[UIView alloc] initWithFrame:CGRectMake(0, 8, kScreenWidth, 182 * kHeightScale)];
    UILabel *lable = [[UILabel alloc] initWithFrame:CGRectMake((kScreenWidth - 120 * kWidthScale) / 2, 20, 120 * kWidthScale, 30)];
    lable.font = [UIFont systemFontOfSize:30];
    lable.text = @"3008积分";
    lable.textColor = 
    
}

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
    return 1;
}

- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
{
    return 8;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return self.dataArray.count;
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
